<%-- 
    Document   : contact_form
    Created on : Jan 24, 2013, 2:17:42 AM
    Author     : owtee
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table align="center">
    <c:forEach items="${mesLst}" var="message">
        <tr>
            <td colspan="2">${message.getMesDetail()}</td>
        </tr>
    </c:forEach>    
    <tr>
        <td colspan="2">ผู้ติดต่อ<hr></td>
    </tr>
    <tr>
        <td>บริษัท :</td>
        <td>
            <select id="ddlConCom" name="ddlConCom">
                <option value="">--- กรุณาเลือก ---</option>
                <c:forEach items="${conComLst}" var="conCom">
                    <option value="${conCom.getConComId()}" 
                            <c:if test="${conCom.getConComId() == con.getConComId().getConComId()}">selected</c:if>>
                        ${conCom.getConComName()}
                    </option>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td>ชื่อผู้ติดต่อ :</td>
        <td>
            <input class="inputbox" type="text" id="txtConName" name="txtConName" value="${con.getConName()}" />
        </td>
    </tr>
    <tr>
        <td>โทรศัพท์ :</td>
        <td>
            <input class="inputbox" type="text" id="txtConTel" name="txtConTel" value="${con.getConTel()}" onkeypress="checknum()" maxlength="10" />
        </td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: center">
            <input type="submit" value="Save" />            
            <input type="button" value="Cancel" onclick="location.href='ContactGetAll'"/>
        </td>                        
    </tr>
</table>
